<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>简介</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="book.inotify.html">« Inotify</a></li>
      <li style="float: right;"><a href="inotify.setup.html">安装/配置 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.inotify.html">Inotify</a></li>
    <li>简介</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="intro.inotify" class="preface">
  <h1 class="title">简介</h1>
  <p class="para">
   Inotify 扩展提供了一系列 inotify 函数： <span class="function"><a href="function.inotify-init.html" class="function">inotify_init()</a></span>、
   <span class="function"><a href="function.inotify-add-watch.html" class="function">inotify_add_watch()</a></span> 、 <span class="function"><a href="function.inotify-rm-watch.html" class="function">inotify_rm_watch()</a></span>。
  </p>
  <p class="para">
   类似 C 语言里的  <span class="function"><a href="function.inotify-init.html" class="function">inotify_init()</a></span> 函数会返回文件描述符，PHP 的
   <span class="function"><a href="function.inotify-init.html" class="function">inotify_init()</a></span>则返回 stream 资源。可以被标准的 Steam 函数使用，例如 <span class="function"><a href="function.stream-select.html" class="function">stream_select()</a></span>、 <span class="function"><a href="function.stream-set-blocking.html" class="function">stream_set_blocking()</a></span> 
   以及 <span class="function"><a href="function.fclose.html" class="function">fclose()</a></span>。
   
   <span class="function"><a href="function.inotify-read.html" class="function">inotify_read()</a></span> 函数取代里 C 语言里读取 inotify 事件的那种方式。
  </p>
 </div></div></div></body></html>